import java.util.Scanner;
import java.util.ArrayList;

public class Main201621123016{
	private static Scanner in;
	public static void main(String[] args) {
		in=new Scanner(System.in);
		String s=in.nextLine();
		ArrayList<Character>  stack1 = new ArrayList<Character>();
  		ArrayList<Character>  stack2 = new ArrayList<Character>();
  		for(int i=0;i<s.length();i++){
   			stack1.add(s.charAt(i));
   			stack2.add(s.charAt(s.length()-i-1));
  		}
  		boolean flag=true;
  		for(int i=s.length()-1;i>=0;i--){
  			 if(stack1.remove(i) != stack2.remove(i)){
   				 flag = false;
    				break;
   			}
  		}
  		if (flag) {
  			System.out.println("YES");
  		}else {
  			System.out.println("NO");
  		}
	}
}